// 引入请求
import request from '../../utils/request-dev'
// import access_token from '../../utils/request-token'
const access_token = 'b384db2d-e652-4fa8-850e-7168bb0e30cb'
// 引入二次封装
import requestMock from '../../utils/requestMock'
// https://www.dance365.com/apis/moment/properties/filter/vip_zone?access_token=9e8e148c-f6ab-4e94-bafa-e28d2b49d2f5
enum API {
    //  会员专区
    CATEGORY = '/moment/properties/filter/vip_zone',// category请求 

    // 视频列表接口
    VIDEOLIST = '/moment/moments/collect/vip_zone/integrated?access_token=',
<<<<<<< HEAD

    SYNTHESIZE=`/moment/moments/collect/live_course/integrated`,
    //视频课专区

=======
    // 销量高低接口
    SALETOP = '/moment/moments/collect/vip_zone/sellCountDesc?access_token=',
    // 浏览量
    GLANCE = '/moment/moments/collect/vip_zone/viewCountDesc?access_token=',
    // 发布时间
    CREATIMTE = '/moment/moments/collect/vip_zone/onsellTimeDesc?access_token=',
    // 价格高到低--降序
    PRICETOP = '/moment/moments/collect/vip_zone/priceDesc?access_token=',
    // 价格低到高--升高
    PRICELOD = '/moment/moments/collect/vip_zone/priceAsc?access_token='
>>>>>>> lxl
}
// 会员专区  
// 分类请求
export const reqCategory = () => request.get(API.CATEGORY + `?access_token=${access_token}`)
// 视频列表
export const reqVideoList = (pageSize: number, pageNum: number, filter) => request.post(API.VIDEOLIST + access_token + `&pageSize=${pageSize}&pageNum=${pageNum}`,filter)
// 销量由高到低接口
export const reqSale = (pageSize: number, pageNum: number) => request.post(API.SALETOP + access_token + `&pageSize=${pageSize}&pageNum=${pageNum}`, {})
// 浏览量
export const reqGlance = (pageSize: number, pageNum: number) => request.post(API.GLANCE + access_token + `&pageSize=${pageSize}&pageNum=${pageNum}`, {})
// 发布时间
export const reqTime = (pageSize: number, pageNum: number) => request.post(API.CREATIMTE + access_token + `&pageSize=${pageSize}&pageNum=${pageNum}`, {})
// 价格降序
export const reqToplod = (pageSize: number, pageNum: number) => request.post(API.PRICETOP + access_token + `&pageSize=${pageSize}&pageNum=${pageNum}`, {})
// 价格升序
export const reqLodtop = (pageSize: number, pageNum: number) => request.post(API.PRICELOD + access_token + `&pageSize=${pageSize}&pageNum=${pageNum}`, {})